package org.zerocouplage.component.test.view;

import static org.zerocouplage.component.common.ZCComponentFactory.newComponent;

import java.io.IOException;

import org.zerocouplage.component.api.page.ZCPage;
import org.zerocouplage.component.common.exception.ZCCompNotFoundException;
import org.zerocouplage.component.test.bean.UserBeanResult;

import com.zerocouplage.common.exceptions.ZCExceptionConfig;


public class UserDisplayView{

	public UserDisplayView() {
	}
	
	public void createResultGui(UserBeanResult out) throws IOException, ZCCompNotFoundException, ZCExceptionConfig {
	
		ZCPage page =  (ZCPage) newComponent(ZCPage.class);
		String message = "Hello " + out.getFirstname() + " "
				+ out.getO_action();
		System.out.println(	page.display());
		System.out.println(message);
	
	}

	public static void main(String[] args) {

		new UserDisplayView();

	}

}
